#include <stdio.h>

int main ()
{
	float supline,dowline,high;
	
	scanf("%f",&supline);
    scanf("%f",&dowline);
    scanf("%f",&high);
    
    float area;
    area = ((supline+dowline)*high)/2.0;
    
    printf("%f\n",area);
    return 0;
}
